package com.zjx.activiti.service;

import org.activiti.engine.impl.pvm.process.ActivityImpl;

import java.util.List;
import java.util.Map;

/**
 * @Auther: zhaojx
 * @Date: 2021/8/25 16:55
 */
public interface RuntimeInfoService {

    List<Map<String, Object>> myTasks(String userId);

    boolean rejected(String taskId, String rejectElemKey, String dealReason);

    /**
     * 获取活动节点
     * @param taskId
     * @param activityId
     * @return
     */
    ActivityImpl findActivitiImpl(String taskId, String activityId);

    /**
     * 驳回流程
     * @param taskId
     */
    void turnBackNew(String taskId);
}
